package org.window;

import javafx.geometry.Pos;
import javafx.scene.layout.*;

/**
 * 水平盒子
 */
public class PaneAndHBoxFrameAndColumn {
    public static HBox hBox = new HBox();
    public static void init(){
        hBox.setLayoutX(0);
        hBox.setLayoutY(80);
        hBox.setPrefWidth(500);
        hBox.setPrefHeight(325);
        hBox.setAlignment(Pos.CENTER_LEFT);
//        new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)
//        hBox.setBackground(new Background(new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)));
        hBox.getChildren().addAll(PaneAndHBoxFrameAndColumnAndTableView.tableView,
                PaneAndHBoxFrameAndColumnVBox.vBox);
        PaneAndHBoxFrameAndColumnAndTableView.init();
        PaneAndHBoxFrameAndColumnVBox.init();
    }
}
